<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCustomerServiceRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('customer_service_records', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('customer_clues_id') ->default(0)->comment('客户线索id');
            $table->bigInteger('staff_id')          ->default(0)->comment('跟进的员工id');
            $table->text('job_content')             ->nullable()->comment('工作内容');
            $table->integer('reward')               ->nullable()->comment('奖励');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('customer_service_records');
    }
}
